//package com.inspur.edp.bef.rtgenerator.entitygen.bevalgen;
//
//import com.inspur.edp.bef.api.be.IBENodeEntityContext;
//import com.inspur.edp.bef.core.determination.DeterminationContext;
//import com.inspur.edp.bef.core.validation.ValidationContext;
//import com.inspur.edp.cef.api.dataType.entity.ICefEntityContext;
//import com.inspur.edp.cef.rtgenerator.entitygen.validation.method.GetValidationContextGenerator;
//import org.eclipse.jdt.core.dom.Block;
//import org.eclipse.jdt.core.dom.CastExpression;
//import org.eclipse.jdt.core.dom.ClassInstanceCreation;
//import org.eclipse.jdt.core.dom.ReturnStatement;
//
//public class BefGetValContextGenerator extends GetValidationContextGenerator
//{
//	@Override
//	protected Block buildMethodBody() {
//		Block block=ast.newBlock();
//		ReturnStatement returnStatement=ast.newReturnStatement();
//		ClassInstanceCreation classInstanceCreation=ast.newClassInstanceCreation();
//		classInstanceCreation.setType(new com.inspur.edp.caf.generator.baseInfo.TypeInfo(ValidationContext.class).getType(ast));
//
//		CastExpression castExpression=ast.newCastExpression();
//		castExpression.setType(new com.inspur.edp.caf.generator.baseInfo.TypeInfo(IBENodeEntityContext.class).getType(ast));
//		castExpression.setExpression(ast.newSimpleName(ContextPar));
//
//		classInstanceCreation.arguments().add(castExpression);
//
//		returnStatement.setExpression(classInstanceCreation);
//
//		block.statements().add(returnStatement);
//		return block;
//	}
//
//	@Override
//	protected Class getContextParType() {
//		return ICefEntityContext.class;
//	}
//}